package com.kun.server.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kun.dao.LoginDao;
import com.kun.entity.CustomerEntity;
import com.kun.server.LoginServer;

@Service("LoginServerImpl")
public class LoginServerImpl implements LoginServer {
	
	@Resource(name="LoginDaoImpl")
	private LoginDao ld;

	public List<CustomerEntity> login(CustomerEntity customerEntity) {
		String hql = "from CustomerEntity where customerName=? and customerPass=?";
		return ld.login(hql,customerEntity);
	}

	public String selPhoneById(int id) {
		String hql = "from CustomerEntity where customerid=?";
		return ld.selPhoneById(hql,id);
	}
	
}
